import request from "@/request/";

// 获取列表
export const getList = (data) => {
  return request({
    url: "/api/mes-warehouse-service/warehouse-biz-type/page",
    method: "POST",
    data,
  });
};

// 新增
export const add = (data) => {
  return request({
    url: "/api/mes-warehouse-service/warehouse-biz-type/save",
    method: "POST",
    data,
  });
};

// 删除
export const remove = (ids) => {
  return request({
    url: "/api/mes-warehouse-service/warehouse-biz-type/delete",
    method: "POST",
    data: {
      ids,
    },
  });
};

// 更新
export const update = (data) => {
  return request({
    url: "/api/mes-warehouse-service/warehouse-biz-type/update",
    method: "POST",
    data,
  });
};

// 获取详情
export const getDetail = (id) => {
  return request({
    url: "/api/mes-warehouse-service/warehouse-biz-type/detail",
    method: "POST",
    data: {
      id,
    },
  });
};
